package com.jiashihui.schema_lgorithm.schema.command;

/**
 * @author jiashihui
 * @describe: 命令调用类
 * @date 2019/03/13
 */
public class Invoker {
    /* 命令接口 */
    private Command command;

    public Invoker(Command command) {
        this.command = command;
    }

    /**
     * 行动
     *
     * @author jiashihui
     */
    public void action() {
        command.execute();
    }
}
